<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <form action="methodServlet" method="get">
        用户名:<input type="text" name="getName">
        <input type="submit" value="get请求">
    </form>

    <form action="methodServlet" method="post">
        用户名:<input type="text" name="postName">
        <input type="submit" value="post请求">
    </form>
</body>
</html>